package net.tarine.oracolo.server;

public class OracoloBusiness {

	public static String buildOracolo() {
		int f1 = (int) Math.floor(PhraseDb.FRASI1.length * Math.random());
		int f2 = (int) Math.floor(PhraseDb.FRASI2.length * Math.random());
		int f3 = (int) Math.floor(PhraseDb.FRASI3.length * Math.random());
		int f4 = (int) Math.floor(PhraseDb.FRASI4.length * Math.random());
		
		String oracolo = PhraseDb.FRASI1[f1] + " " +
				PhraseDb.FRASI2[f2] + ". " +
				PhraseDb.FRASI3[f3] + " " +
				PhraseDb.FRASI4[f4] + ".";
		return oracolo;
	}
}
